# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : add_client.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/8/10 21:16
# @Copyright: 北京码同学
from api.grpcapi import add_pb2_grpc, add_pb2
from common.grpc_client import GrpcChannel


def add(a,b):
    client = add_pb2_grpc.AddServiceStub(GrpcChannel.channel)
    result = client.add(add_pb2.AddRequest(a=a, b=b))
    # print(result.res)
    return result.res